From: Jonas Dreßler Date: Tue, 23 Feb 2021 19:16:00 +0000 (+0100) Subject: iconGrid: Don't update pages in vfunc_allocate() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~180 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0fd394d4ca531c14aa017f43d91a75c1fcfbfc5e;p=gnome-shell.git iconGrid: Don't update pages in vfunc_allocate() vfunc_allocate() is a hot path, and we don't want to do expensive stuff there, so avoid updating the pages, which seems unnecessary anyway. Part-of: --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 30d9cdde3..27ffd733e 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -775,8 +775,6 @@ var IconGridLayout = GObject.registerClass({ if (this._pageWidth === 0 || this._pageHeight === 0) throw new Error('IconGridLayout.adaptToSize wasn\'t called before allocation'); - this._updatePages(); - const isRtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL; const childSize = this._getChildrenMaxSize();